package uplb.ics.cs190.e2d.graphics;

import uplb.ics.cs190.e2d.display.Graphics;

public class MIDletImage implements Image {

	protected javax.microedition.lcdui.Image image;
	
	public MIDletImage(javax.microedition.lcdui.Image image) {
		this.image = image;
	}
	
	public MIDletImage() {
		this.image = null;
	}
	
	public int getWidth() {
		return this.image.getWidth();
	}
	
	public int getHeight() {
		return this.image.getHeight();
	}

	public void render(Graphics g, int x, int y) {
		
	}

	public boolean isEmpty() {
		return this.image == null;
	}
	
	public javax.microedition.lcdui.Image getImage() {
		return this.image;
	}
	
	public void setImage(javax.microedition.lcdui.Image image) {
		this.image = image;
	}
}
